/*
 *                  BioJava development code
 *
 * This code may be freely distributed and modified under the
 * terms of the GNU Lesser General Public Licence.  This should
 * be distributed with the code.  If you do not have a copy,
 * see:
 *
 *      http://www.gnu.org/copyleft/lesser.html
 *
 * Copyright for this code is held jointly by the individual
 * authors.  These should be listed in @author doc comments.
 *
 * For more information on the BioJava project and its aims,
 * or to join the biojava-l mailing list, visit the home page
 * at:
 *
 *      http://www.biojava.org/
 * 
 * Created on May 23, 2005
 *
 */

package org.biojava.services.das.registry;

import java.util.List;
import java.util.ArrayList;

import org.biojava.services.das2.Das2Mirror;

/** a bean that gets config via the spring configuration
 */

public class ConfigBean {

	List mirrorSources;
	int minimumServers;
	boolean cleanAllKnown;
	boolean printValidationStatus;
	
	String openIDReturnURL;
	String computerToDoIndexing;
	String pathForIndexingFiles;
	
	public String getPathForIndexingFiles() {
		return pathForIndexingFiles;
	}


	public void setPathForIndexingFiles(String pathForIndexingFiles) {
		this.pathForIndexingFiles = pathForIndexingFiles;
	}


	public String getComputerToDoIndexing() {
		return computerToDoIndexing;
	}


	public void setComputerToDoIndexing(String computerToDoIndexing) {
		this.computerToDoIndexing = computerToDoIndexing;
	}


	public ConfigBean(){
		mirrorSources = new ArrayList();
		cleanAllKnown = false; 
		printValidationStatus = false;
		openIDReturnURL = "";
	}


	public String getOpenIDReturnURL() {
		return openIDReturnURL;
	}


	public void setOpenIDReturnURL(String openIDReturnURL) {
		this.openIDReturnURL = openIDReturnURL;
	}


	public boolean isCleanAllKnown() {
		return cleanAllKnown;
	}


	public void setCleanAllKnown(boolean cleanAllKnown) {
		this.cleanAllKnown = cleanAllKnown;
	}


	public boolean isPrintValidationStatus() {
		return printValidationStatus;
	}


	public void setPrintValidationStatus(boolean printValidationStatus) {
		this.printValidationStatus = printValidationStatus;
	}


	/** a list of Das2Source beans 
	 * @param sources */
	public void setMirrorSources(List sources) {
		this.mirrorSources = sources;
	}

	public List<Das2Mirror> getMirrorSources() {
		return mirrorSources;
	}


	/** the minimum number of server found after a das2 style sources
	 * request that triggers a mirroring of that location 
	 * @param min */

	public void setMinimumServers(int min) {
		minimumServers = min;
	}
	public int getMinimumServers() {
		return minimumServers;
	}
}
